package com.grass.cropTradingCenter.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName mini_user
 */
@TableName(value ="mini_user")
@Data
public class MiniUser implements Serializable {
    /**
     * 
     */
    @TableId(value = "user_id", type = IdType.AUTO)
    private Integer userId;

    /**
     * 昵称
     */
    @TableField(value = "nick_name")
    private String nickName;

    /**
     * 账户名
     */
    @TableField(value = "user_account")
    private String userAccount;

    /**
     * 用户密码
     */
    @TableField(value = "user_password")
    private String userPassword;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 上次登录时间
     */
    @TableField(value = "last_login_time")
    private Date lastLoginTime;

    private Date thisLoginTime;

    /**
     * 用户头像
     */
    @TableField(value = "user_avatar")
    private String userAvatar;

    /**
     * 用户签名
     */
    @TableField(value = "user_signature")
    private String userSignature;

    /**
     * 手机号
     */
    @TableField(value = "user_phone")
    private String userPhone;


    private String userEmail;

    /**
     * 关注店铺数量
     */
    @TableField(value = "follow_shop_num")
    private Integer followShopNum;

    /**
     * 关注商品数量
     */
    @TableField(value = "collect_goods_num")
    private Integer collectGoodsNum;

    /**
     * 关注朋友数量
     */
    @TableField(value = "following_people_num")
    private Integer followingPeopleNum;

    // 个人积分
    private Integer integral;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}